package com.demo.support.task;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.jweb.annotaion.JTask;
import com.jweb.log.Logger;
import com.jweb.plugin.cache.CustomCache;

@JTask(cron = "0 0/30 * * * ?", jobName = "定时查看缓存", triggerName = "PrintMapJob")
public class PrintMapJob implements Job {
	private Logger log = Logger.getLogger(getClass());

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		log.info("任务执行:[{}] ", this.getClass().getAnnotation(JTask.class).toString());

		CustomCache.printAll();
		CustomCache.removeAll();
	}

}
